package com.baizhi.service.impl;

import com.baizhi.entity.LayuiResource;
import com.baizhi.entity.TreeNode;
import com.baizhi.mapper.LayuiResourceMapper;
import com.baizhi.service.LayuiResourceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhengg
 * @since 2020-07-31
 */
@Service
public class LayuiResourceServiceImpl extends ServiceImpl<LayuiResourceMapper, LayuiResource> implements LayuiResourceService {
    public List<LayuiResource> selectResByUsername(String username){
        return baseMapper.selectResByUsername(username);
    }

    @Override
    public List<LayuiResource> selectMenuByUsername(String username) {
        return baseMapper.selectMenuByUsername(username);
    }

    @Override
    public List<TreeNode> selectResTree() {
        return baseMapper.selectResTree();
    }
}
